<extend name="Layout/dialog" />
<block name="css"></block>
<block name="style"></block>
<block name="js"></block>
<block name="script"></block>
<block name="model">合同管理</block>
<block name="controller">合同管理</block>
<block name="action">编辑支付信息</block>
<block name="desc"></block>
<block name="content">
<div class="box box-danger">
	<div class="box-header with-border">
		<h3 class="box-title">编辑支付信息</h3>
	</div>
	<notempty name="data">
		<form class="form-horizontal" action="{:U('save')}" method="post" rel-action="form" rel-success="reload()">
			<div class="box-body">
				<div class="form-group">
					<label class="col-sm-2 control-label"><span class="text-red">*</span>合同编号</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="number" placeholder="请输入合同编号" value="{$data.contract_number}" autocomplete="off">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">微信支付单号</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="transaction_id" placeholder="请输入微信支付单号" value="{$data.contract_transaction_id}"  autocomplete="off">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">姓名</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="name" placeholder="请输入姓名" value="{$data.contract_name}"  autocomplete="off">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">身份证号</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="cardid" placeholder="请输入身份证号" value="{$data.contract_cardid}"  autocomplete="off">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">支付金额</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="amount" placeholder="请输入支付金额" value="{$data.amount}"  autocomplete="off">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">支付时间</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="time" placeholder="请输入支付时间" value="{$data.time}"  autocomplete="off">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">贷款类型</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="loan_type" placeholder="请输入贷款类型" value="{$data.contract_loan_type}"  autocomplete="off">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">商品类型</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="commodity_type" placeholder="请输入商品类型" value="{$data.contract_commodity_type}"  autocomplete="off">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">品牌</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="brand" placeholder="请输入品牌" value="{$data.contract_brand}"  autocomplete="off">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">总金额</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="total_money" placeholder="请输入总金额" value="{$data.contract_total_money}"  autocomplete="off">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">首付金额</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="down_pay" placeholder="请输入首付金额" value="{$data.contract_down_pay}" autocomplete="off">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">支付状态</label>
					<div class="col-sm-10 radio">
						<label>
							<if condition="$data.contract_status == '1'">
								<input type="radio" name="status" value="1" checked="checked">支付成功
							<else />
								<input type="radio" name="status" value="1">支付成功
							</if>
						</label>
						<label>
							<if condition="$data.contract_status == '2'">
								<input type="radio" name="status" value="2" checked="checked">支付失败
							<else />
								<input type="radio" name="status" value="2">支付失败
							</if>
						</label>
						<label>
							<if condition="$data.contract_status == '0'">
								<input type="radio" name="status" value="0" checked="checked">未支付
							<else />
								<input type="radio" name="status" value="0">未支付
							</if>
						</label>
					</div>
				</div>
			</div>
			<input type="hidden" name="id" value="{$data.contract_id}">
			<div class="box-footer">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-default">保存</button>
					<button type="button" class="btn btn-default" rel-action="dialog-close">关闭</button>
				</div>
			</div>
		</form>
	</notempty>
	<empty name="data">
	<div class="box-body">
		<div class="alert alert-error alert-dismissible">
			<h4><i class="icon fa fa-warning"></i>暂无记录</h4>
			参数有误
		</div>
	</div>
	</empty>
</div>
</block>